﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ServiceController
{
    public partial class ServiceController
    {

        public void GetAccountProperty(String SubscriptionID, String CertificatePath, String AccountName)
        {
            Entities.Storage_Account.StorageAccountProperty AccountProperty = new Entities.Storage_Account.StorageAccountProperty();
            
            DataAccess.DataAccess da = new DataAccess.DataAccess();
            try
            {
                AccountProperty= da.GetAccountProperty(SubscriptionID, CertificatePath, AccountName);
                OnGetStorageAccountPropertyCompleted(new ServiceControllerEventArgs(){
                    StorageAccountProperty = AccountProperty,
                    error = null
                });
               

            }
            catch (Exception ex)
            {
                OnGetStorageAccountPropertyCompleted(new ServiceControllerEventArgs(){ error=ex  });
               
            }





        }

    }
}
